
import { observable, action } from "mobx"


class User {
    @observable userinfo = null;

    @observable visible = false;

    @observable Listdemo = null;

    @action changeUserinfo = payload => {
        this.userinfo = { ...this.userinfo, ...payload };
    }

    @action getUserinfo = payload => {
        this.userinfo = { ...payload };
    }

    @action resetUserinfo = () => {
        this.userinfo = null;
    }

    @action getVisible = payload => {
        this.visible = payload;
    }

    @action getList = payload => {
        this.Listdemo = payload;
    }
}

export default new User() 